package com.ericsson.enap.modules.topology.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

@Setter
@Getter
public class CabNode {
    private Long id;
    private String name;
    private Integer labId;
    private Integer type;
    private Integer comboId;
    private String x;
    private String y;



    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CabNode cabNode = (CabNode) o;
        return Objects.equals(id, cabNode.id) &&
                Objects.equals(labId, cabNode.labId) &&
                Objects.equals(type, cabNode.type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, labId, type);
    }
}
